package cn.com.huzo.service.master;

import cn.com.huzo.model.entities.master.CustomerGroupMemberCustomerEntity;
import huzofw.service.GenericManager;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 客户组成员客户管理服务对象接口。
 *
 * @author 吴旭
 */
public interface CustomerGroupMemberCustomerManager extends GenericManager<CustomerGroupMemberCustomerEntity, HashMap> {

    /**
     * 取得该客户所在组
     *
     * @param customerId 客户标识
     * @return 客户组信息对象
     * @throws java.lang.Exception
     */
    List<CustomerGroupMemberCustomerEntity> fetchByCustomerId(Long customerId) throws Exception;

    /**
     * 新建组成员客户
     *
     * @param criterion
     * @return
     * @throws Exception
     */
    Map<String, Object> insert(Map<String, Object> criterion) throws Exception;
}
